package view;

import java.awt.Color;
import java.awt.Font;
import java.awt.Frame;

import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;

public class About extends JDialog{
     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Font fon = new Font("楷体", Font.BOLD, 22);
	
	
	public About(Frame frame,boolean isSon) {
		super(frame,isSon);
		
		setTitle("about");
		setSize(400,200);
		
		
		JPanel panel=new JPanel();
		panel.setBackground(Color.gray);
		panel.setLayout(null);
		//panel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		add(panel);
		
		JLabel lab=new JLabel("About");
		lab.setBounds(100, 20, 80, 20);
		lab.setFont(fon);
		panel.add(lab);
		JLabel lac=new JLabel("制作时间：2016年6月12日");
		lac.setBounds(20, 60, 200, 20);
		panel.add(lac);
		JLabel lad=new JLabel("游戏操作：");
		lad.setBounds(20, 100, 200, 20);
		panel.add(lad);
		JLabel lae=new JLabel("↑向上");
		lae.setBounds(80, 120, 200, 20);
		panel.add(lae);
		JLabel laf=new JLabel("↓向下");
		laf.setBounds(80, 140, 200, 20);
		panel.add(laf);
		JLabel lai=new JLabel("←向左");
		lai.setBounds(76, 160, 200, 20);
		panel.add(lai);
		JLabel lal=new JLabel("→向右");
		lal.setBounds(76, 180, 200, 20);
		panel.add(lal);
	}
}
